from django.urls import re_path
from . import views

urlpatterns = [
    # 获取图片验证码
    re_path('^imagecode$', views.imagecodeView.as_view()),
    # 短信验证码
    re_path('^sms$', views.smscodeView.as_view()),
    # 注册
    re_path('^users$', views.RegisterView.as_view()),
    # 登录
    re_path('^session$', views.LoginView.as_view()),
    # 上传头像
    re_path('^user/avatar$', views.UserAvatar.as_view()),
    # 用户名修改
    re_path('^user/name$', views.UserName.as_view()),
    # 实名认证
    re_path('^user/auth$', views.RealName.as_view()),
    # 个人中心
    re_path('^user$', views.UserView.as_view()),



]